<!--    引入layui -->
<link href="../../assets/layui-v2.5.6/css/layui.css" rel="stylesheet">
<script src="../../assets/layui-v2.5.6/layui.all.js"></script>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<style>
    .layui-form-label {
        width: 85px
    }

    .layui-input-block {
        margin-left: 115px;
    }
</style>
<div style="margin: 20px;" id="poet_detail">
    <form class="layui-form" action="" lay-filter="add_form">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-inline">
                    <input type="text" name="create_time"  placeholder="" autocomplete="off"
                           class="layui-input" value='#(poet.get("create_time"))' disabled>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">最近更新时间</label>
                <div class="layui-input-inline">
                    <input type="text" name="last_update_time"  placeholder=""
                           autocomplete="off" class="layui-input" value='#(poet.get("last_update_time"))' disabled>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-inline">
                    <input type="text" name="name"  placeholder="" autocomplete="off"
                           class="layui-input" value='#(poet.get("name"))' disabled>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">字号</label>
                <div class="layui-input-inline">
                    <input type="text" name="courtesyName"  placeholder=""
                           autocomplete="off"
                           class="layui-input" value='#(poet.get("courtesy_name"))' disabled>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-inline">
                    #if(poet.get("sex")=="男")
                    <input type="radio" name="sex" value="男" title="男" checked disabled>
                    #else
                    <input type="radio" name="sex" value="男" title="男" disabled>
                    #end
                    #if(poet.get("sex")=="女")
                    <input type="radio" name="sex" value="女" title="女" checked disabled>
                    #else
                    <input type="radio" name="sex" value="女" title="女" disabled>
                    #end
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">年龄</label>
                <div class="layui-input-inline">
                    <input type="text" name="age"  placeholder="" autocomplete="off"
                           class="layui-input" value='#(poet.get("age"))' disabled>
                </div>
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">出生日期</label>
                <div class="layui-input-inline" style="width: 100px;">
                    <input type="text" name="birthYear"  placeholder="年"
                           autocomplete="off"
                           class="layui-input" value='#(poet.get("birth_year"))' disabled>
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline" style="width: 100px;">
                    <input type="text" name="birthMonth" placeholder="月" autocomplete="off" class="layui-input"
                           value='#(poet.get("birth_month"))' disabled>
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline" style="width: 100px;">
                    <input type="text" name="birthDay" placeholder="日" autocomplete="off" class="layui-input"
                           value='#(poet.get("birth_day"))' disabled>
                </div>
            </div>

        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">出生地</label>
            <div class="layui-input-block">
                <input type="text" name="birthplace"  placeholder=""
                       autocomplete="off"
                       class="layui-input" value='#(poet.get("birthplace"))' disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">死亡日期</label>
                <div class="layui-input-inline" style="width: 100px;">
                    <input type="text" name="deathYear"  placeholder="年"
                           autocomplete="off"
                           class="layui-input" value='#(poet.get("death_year"))' disabled>
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline" style="width: 100px;">
                    <input type="text" name="deathMonth" placeholder="月" autocomplete="off" class="layui-input"
                           value='#(poet.get("death_month"))' disabled>
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline" style="width: 100px;">
                    <input type="text" name="deathDay" placeholder="日" autocomplete="off" class="layui-input"
                           value='#(poet.get("death_day"))' disabled>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">死亡地</label>
            <div class="layui-input-block">
                <input type="text" name="deathplace"  placeholder=""
                       autocomplete="off"
                       class="layui-input" value='#(poet.get("deathplace"))' disabled>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">生平简介</label>
            <div class="layui-input-block">
                <textarea name="briefLifeAccount" placeholder="请输入内容" class="layui-textarea" disabled>#(poet.get("brief_life_account"))</textarea>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">主要成就</label>
            <div class="layui-input-block">
                <textarea name="achievement" placeholder="请输入内容"
                          class="layui-textarea" disabled>#(poet.get("achievement"))</textarea>
            </div>
        </div>
    </form>

</div>
<script>
    let form = layui.form;
    form.render(); //更新全部


</script>